import { Component, OnInit } from '@angular/core';
import { NzIconService } from 'ng-zorro-antd/icon';
import { CommonService } from './common/CommonService.service';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit{
    constructor(private _iconService: NzIconService,
                private common: CommonService) {
        // 配置iconfont的地址
        this._iconService.fetchFromIconfont({
            scriptUrl: 'https://at.alicdn.com/t/font_2610650_4qx508wg0u5.js'
        });
        this.common.setTitle();   //设置页面标题
    }

    ngOnInit(): void {
    }
}
